package com.practices.activity;

import com.practice.R;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class TestActivity extends Activity {
	private TextView mTextView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		LayoutInflater layoutInflater=(LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View view=layoutInflater.from(TestActivity.this).inflate(R.layout.test_activity, null);
		setContentView(view);
		initView();
	}

	private void initView() {
		mTextView=(TextView) findViewById(R.id.tv_text);
		mTextView.setText(TestActivity.this.getCacheDir().getPath());
	}
	
}
